<template>
	<view>
		<!-- #ifdef H5 -->
		<!-- <Tabbar :current="'0'"></Tabbar> -->
		<!-- #endif -->
		<view class="container">
			<view class="container-header">
				<view class="header" :style="'padding-top:' + statusBarHeight + 'px'">
				<view class="header-container">
					<!-- 未登录 -->
					<view v-if="!isLogin" class="user-info" @tap.stop.prevent="onLogin">
						<view class="user__avatar-wrapper">
							<image class="user__avatar" src="http://img.btcys.com/btc/platform/%E6%AF%94%E7%89%B9logo.png"></image>
						</view>
						<view class="user_info">
							<view class="user__nickname">点击登录</view>
						</view>
					</view>

					<!-- 已登录 -->
					<template v-else>
						<!-- 头像昵称 -->
						<navigator url="./setting/setting" hover-class="none" class="user-info">
							<view class="user__avatar-wrapper">
								<image class="user__avatar" src="http://img.btcys.com/btc/platform/%E6%AF%94%E7%89%B9logo.png"></image>
								<!-- <image class="user__avatar" :src="userInfo.avatarUrl"></image> -->
							</view>
							<view class="user_info" v-if="userInfo.user_tag > 0 || userInfo.user_tag1 > 0 ">
								<view class="user__nicknames">{{ userInfo.nickName }}</view>
									<!-- <image class="tag" style="right: -40rpx;" v-show="userInfo.user_tag1 > 0" src="@/static/tag.png" mode="widthFix"></image> -->
									<!-- <image class="tag" style="right: 100rpx;" v-show="userInfo.user_tag > 0" src="https://qiniu.wiod.cn/alc/%E5%88%9B%E4%B8%96tag.png" mode="widthFix"></image> -->
								
								<view v-if="user_status_lianlian == 1" class="nft-address-view">
									<text class="nft-address">{{ nft_address}}</text>
									<text class="nft-address-copy dy-iconfont icon-copy" @tap.stop.prevent="copyAddress"
										:data-content="nft_address"></text>
								</view>
							</view>
							<view class="user_info" v-else>
								<view class="user__nickname">{{ userInfo.nickName }}</view>
								<!-- 单个链显示区块链地址 -->
								<view v-if="address_id > 0" class="nft-address-view">
									<text class="nft-address">{{ nft_address}}</text>
									<text class="nft-address-copy dy-iconfont icon-copy" @tap.stop.prevent="copyAddress"
										:data-content="nft_address"></text>
								</view>
								<!-- 未认证 -->
								<navigator v-else url="./address/index" hover-class="none"
									class="attestation-btn dis-flex flex-x-center flex-y-center">
									<view class="menu__title f-26">{{user_status}}</view>
									<text class="dy-iconfont icon-youjiantou"></text>
								</navigator>
								<!-- <navigator v-else url="./realName/index" hover-class="none"
									class="attestation-btn dis-flex flex-x-center flex-y-center">
									<view class="menu__title f-26">{{user_status}}</view>
									<text class="dy-iconfont icon-youjiantou"></text>
								</navigator> -->
							</view>
							
							
						</navigator>
					<!-- 	<navigator class="jade-shop"  url="/pages/user/integral/index"  hover-class="none">
							能量商店
						</navigator> -->
					</template>
				</view>
				<!-- <view class="horizontal-menu-list dis-flex">
					<navigator url="./exchange/index/index" hover-class="none" class="menu flex-box">
						<view class="t-c menu__ic">
							<image src="https://imgcdn.ecbao.cn/nft/user/duihuanma.png" mode=""></image>
						</view>
						<view class="menu__title f-26">兑换码</view>
					</navigator>
					<view class="menu flex-box" @tap.stop.prevent="unrelease">
						<view class="t-c menu__ic">
							<image src="https://imgcdn.ecbao.cn/nft/user/jifendao.png" mode=""></image>
						</view>
						<view class="menu__title f-26">能量岛</view>
					</view>
					<view class="menu flex-box" @tap.stop.prevent="unrelease">
						<view class="t-c menu__ic">
							<image src="https://imgcdn.ecbao.cn/nft/user/duihuanting.png" mode=""></image>
						</view>
						<view class="menu__title f-26">兑换厅</view>
					</view>
				</view> -->
				</view>
				<view class="cp-section list-item">
					<!-- <view class="section-title">我的藏品</view> -->
					<view class="horizontal-menu-list_main dis-flex" v-if="isLogin">
						<view class="flex-box menu_box" @tap.stop.prevent="myAssets">
							<!-- <view class="menu-img my-cp"></view> -->
							<view class="icon">
								<svg t="1680862505213" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2186" width="26" height="26"><path d="M779.2 524c-1.6-41.6-18.4-83.2-44.8-115.2l-0.8-0.8c-12.8-13.6-26.4-26.4-42.4-37.6 8-21.6 14.4-40 20-57.6 6.4-13.6 10.4-28.8 12.8-42.4v-10.4c-5.6-60.8-75.2-72.8-108-79.2l-5.6-0.8c-69.6-12.8-141.6-12.8-213.6-0.8-88 13.6-108.8 52.8-109.6 83.2v8.8l0.8 2.4c2.4 13.6 8 25.6 14.4 34.4 2.4 8 6.4 16 8.8 28l2.4 8c2.4 10.4 6.4 20.8 10.4 32-28 20-52 46.4-65.6 75.2-12.8 24-20 52.8-21.6 86.4v3.2c1.6 55.2 20 109.6 49.6 152 14.4 22.4 32 40.8 47.2 59.2 2.4 4.8 7.2 8 10.4 12.8-0.8 8-0.8 16 0.8 25.6v0.8c10.4 40.8 56 56 71.2 60.8h1.6c16 2.4 31.2 6.4 44.8 7.2v1.6H557.6v-1.6c13.6-1.6 28.8-4.8 44.8-7.2h1.6c38.4-10.4 63.2-32 71.2-60 1.6-8.8 2.4-18.4 0.8-28 2.4-4.8 7.2-8 10.4-12.8l1.6-1.6c14.4-16 31.2-34.4 45.6-56 24.8-33.6 40.8-76 47.2-119.2 0.8-2.4 1.6-8.8 1.6-14.4-1.6-8.8-1.6-27.2-3.2-36zM405.6 240c65.6-10.4 130.4-10.4 193.6 0l5.6 0.8c16 2.4 53.6 8.8 56 21.6-0.8 7.2-4.8 14.4-6.4 21.6-18.4-8.8-40-13.6-53.6-15.2l-4.8-0.8c-59.2-10.4-119.2-10.4-180 0-24.8 4.8-44.8 10.4-57.6 17.6-0.8-1.6-0.8-2.4-1.6-5.6l-1.6-2.4-3.2-2.4c-0.8-0.8-2.4-4.8-4.8-8.8 2.4-9.6 20-20 58.4-26.4z m312.8 315.2v1.6c0 1.6-0.8 6.4-0.8 7.2-5.6 34.4-17.6 67.2-36 93.6l-1.6 1.6c-11.2 17.6-25.6 33.6-40 48.8l-2.4 4.8c-2.4 4.8-6.4 8-10.4 11.2-5.6 5.6-8.8 10.4-12.8 15.2l-12.8 17.6 11.2 18.4v1.6c-0.8 2.4-8.8 10.4-24.8 14.4-25.6 5.6-45.6 8-64.8 8h-28.8c-18.4-0.8-39.2-2.4-64.8-8-14.4-4.8-24-11.2-24.8-14.4v-2.4l10.4-17.6-12.8-16c-4.8-5.6-8-10.4-12.8-15.2-2.4-4.8-7.2-8-10.4-11.2l-1.6-2.4c-14.4-15.2-29.6-32-40-49.6l-0.8-1.6c-22.4-32-37.6-73.6-39.2-116.8 1.6-24.8 7.2-45.6 15.2-60.8 12.8-25.6 34.4-48 62.4-62.4l25.6-13.6-12.8-26.4c-4.8-8.8-8-20-11.2-29.6h4.8v-1.6c0.8-0.8 8.8-10.4 42.4-15.2 53.6-8.8 107.2-8.8 159.2 0l4.8 0.8c24.8 4.8 39.2 8.8 41.6 13.6v0.8h0.8c-2.4 8-7.2 16-11.2 25.6L608 401.6l26.4 13.6c20.8 10.4 37.6 22.4 49.6 37.6 17.6 22.4 28.8 49.6 29.6 80v1.6c4.8 0 4.8 16.8 4.8 20.8z" p-id="2187"></path><path d="M946.4 20H77.6c-33.6 0-60 26.4-60 60v871.2c0 33.6 26.4 60 60 60h868.8c33.6 0 60-26.4 60-60V78.4c0-32-27.2-58.4-60-58.4z m-24 531.2c0 14.4 19.2 23.2 18.4 34.4-2.4 16-20 36.8-13.6 54.4-23.2 22.4 18.4 192-9.6 204.8v5.6c2.4 0.8 4.8 0.8 7.2 1.6-3.2 0.8-4.8 0.8-8 1.6-2.4 5.6-4.8 68.8-7.2 74.4h-0.8v1.6s0 0.8-0.8 0.8c-3.2 1.6-2.4 3.2 0 4v3.2h-2.4c-2.4 16-73.6-10.4-84 1.6-4.8 0.8-41.6-14.4-45.6-13.6-7.2 5.6-32 2.4-37.6 6.4-8 6.4-23.2-10.4-32-6.4-4.8 0.8-10.4 1.6-14.4 2.4-22.4 15.2-49.6-15.2-76.8-3.2-20 8-40 1.6-63.2 8 3.2 2.4-2.4 4-11.2 4.8H490.4c-1.6 0-4-0.8-4.8-0.8l-67.2-4c-3.2 0.8-4 5.6-9.6 4-4-1.6-8 8-10.4 6.4-4-2.4-24-7.2-28.8-9.6-5.6-2.4-6.4 4-9.6 4h-2.4c-9.6-6.4-14.4-5.6-28.8-9.6l4-4c-6.4-5.6-32.8 4.8-44-3.2-32-22.4-172 27.2-198.4-2.4-33.6-37.6 39.2-246.4 12-291.2V624c0.8-0.8 1.6-0.8 3.2-3.2-5.6-4.8-4-34.4-4-49.6-3.2-1.6-4.8-3.2-6.4-4.8 0 0-0.8-11.2-0.8-24.8 0.8-0.8 1.6-0.8 2.4-1.6 0-4.8-1.6-12.8-3.2-16.8l3.2-15.2c6.4-13.6 14.4-33.6 8-44 8-4.8 11.2-19.2 13.6-29.6h-5.6L120 408h0.8v-4l-27.2-16.8c2.4-4.8 4.8-8 8-12.8v-1.6h-2.4l6.4-13.6-13.6-20c36.8-45.6-24.8 8 5.6-120.8l1.6-2.4 4.8 8c0.8-4.8 1.6-15.2 1.6-17.6l-6.4-52c0.8 0 1.6 0 2.4 0.8h1.6c0.8-3.2-0.8-3.2 0.8-4.8l0.8-0.8c2.4-4.8 0-10.4 5.6-12 0-4 23.2-16 23.2-20l1.6-3.2c10.4-4 8 12 8 1.6l2.4 4c16-4 28.8-0.8 42.4-9.6h13.6c9.6-4.8 24-8.8 23.2-24 4 2.4 5.6 4 9.6 0 4.8-3.2 4 4 2.4-1.6h1.6c2.4 4 4.8 0 7.2 4 35.2-10.4 250.4-2.4 298.4 12 12.8-0.8 24-1.6 36.8-2.4 12.8 5.6 37.6 12 52 12v-9.6c17.6 16 40-8.8 60 2.4 11.2 4.8 27.2-11.2 38.4-6.4l12.8 12.8 147.2-9.6 52 106.4c-23.2 29.6-6.4 30.4-4 35.2h-2.4l-22.4 28.8s-0.8 0-0.8 0.8c1.6 7.2 4.8 4.8 7.2 8.8l0.8 0.8c-1.6 3.2-8 55.2-8 55.2 0.8 18.4 8.8 52.8 15.2 77.6v92.8c-3.2 12.8-7.2 24.8-9.6 32-3.2 7.2 3.2 8.8 3.2 12.8z" p-id="2188"></path><path d="M375.2 48.8h6.4V28.8h-6.4v20z m215.2-13.6c5.6 7.2-0.8 0.8 6.4 6.4V28.8H584c5.6 7.2-0.8 0.8 6.4 6.4z m-424.8 0v6.4c-7.2 5.6-0.8-0.8-6.4 6.4h12.8c-4-12.8 0.8-4.8-6.4-12.8z m438.4 7.2c7.2 7.2 0 3.2 12.8 6.4v-6.4h-12.8zM113.6 55.2h20v-6.4h-20v6.4z m136.8 0c7.2-5.6 0.8 0.8 6.4-6.4h-12.8c4 12.8-0.8 5.6 6.4 12.8v-6.4z m405.6 6.4h-12.8c7.2 7.2 0 3.2 12.8 6.4v-6.4z m26.4 20v-6.4c-6.4-2.4-12.8-4-20-6.4 8 10.4 4 8.8 20 12.8z m130.4 6.4h-6.4c-5.6-7.2 0.8-0.8-6.4-6.4v12.8c12.8-4 5.6 0.8 12.8-6.4z m-91.2 12.8v-6.4h-12.8c7.2 7.2-0.8 2.4 12.8 6.4z m202.4 0v-6.4h-12.8c7.2 7.2 0 2.4 12.8 6.4z m-352.8 6.4V120h6.4c-4-12.8 0.8-4.8-6.4-12.8z m52 13.6v-6.4h-12.8c7.2 7.2 0 2.4 12.8 6.4z m137.6 0c7.2 7.2 0 2.4 12.8 6.4v-6.4h-12.8z m12.8 6.4c7.2 7.2 0 2.4 12.8 6.4v-6.4h-12.8z m-418.4 12.8v-6.4h-12.8c7.2 7.2 0 2.4 12.8 6.4z m444.8-6.4h-12.8c7.2 7.2 0 3.2 12.8 6.4v-6.4z m-124 12.8v12.8h6.4c-4-12.8 0.8-4.8-6.4-12.8z m150.4 6.4v-6.4h-12.8c7.2 7.2-0.8 3.2 12.8 6.4z m-189.6 20c-4.8-17.6-1.6-15.2-20-20 4 8 6.4 13.6 12.8 20v6.4h12.8c-4.8-7.2 1.6-0.8-5.6-6.4z m-98.4 0h-12.8c7.2 7.2 0 2.4 12.8 6.4v-6.4z m144 20v12.8h6.4c-4-12.8 0.8-5.6-6.4-12.8z m228.8 6.4v-6.4h-12.8c7.2 7.2 0 2.4 12.8 6.4zM120 238.4c2.4-8.8 4-17.6 6.4-26.4H120c-4 9.6-5.6 10.4-6.4 26.4h6.4z m719.2-20v12.8h6.4c-4-12.8 0.8-4.8-6.4-12.8z m-216 150.4c-11.2-4-21.6-8.8-32.8-12.8-2.4 6.4-4 12.8-6.4 20h39.2v-7.2z m-392 26.4c7.2-5.6 0.8 0.8 6.4-6.4h-12.8c4 12.8-0.8 5.6 6.4 12.8v-6.4z m667.2 12.8h-6.4v6.4c12.8 2.4 26.4 4 39.2 6.4-2.4-11.2-4-21.6-6.4-32.8-17.6 4.8-19.2 7.2-26.4 20z m-216 6.4h6.4c-4-12.8 0.8-5.6-6.4-12.8v12.8z m-568.8 13.6v6.4h20v-12.8h-26.4c4.8 7.2-1.6 0.8 6.4 6.4z m64.8 19.2h6.4c0-7.2 5.6-10.4 12.8-6.4v6.4h12.8c-5.6-7.2 0.8-0.8-6.4-6.4v-12.8c-9.6 4-10.4 5.6-26.4 6.4 0.8 4 0.8 8.8 0.8 12.8z m-39.2 0c-4-12.8 0.8-5.6-6.4-12.8v12.8h6.4z m104.8-6.4v12.8h6.4c-4-12.8 0.8-5.6-6.4-12.8z m-78.4 13.6h-12.8c5.6 7.2-0.8 0.8 6.4 6.4 7.2 7.2 0 2.4 12.8 6.4 2.4-6.4 4-12.8 6.4-20-12.8 4-5.6-0.8-12.8 7.2z m78.4 19.2v-20c-12.8-4-5.6 0.8-12.8-6.4h-6.4v20h6.4v32.8c2.4-4.8 29.6-5.6 39.2 0 2.4 4 4 8.8 6.4 12.8 11.2 8.8 21.6 17.6 32.8 26.4 2.4 6.4 4 12.8 6.4 20h12.8v20h6.4v-6.4h6.4v6.4h39.2v-6.4c-38.4-8.8-73.6-41.6-98.4-65.6-16.8-18.4-4-25.6-38.4-33.6z m-45.6 32.8v-20h-12.8c4 12.8-0.8 5.6 6.4 12.8v6.4c2.4 0.8 4 0.8 6.4 0.8z m457.6 0c-4-15.2-1.6-12-12.8-20 4 12.8-0.8 5.6 6.4 12.8v6.4c2.4 0.8 4 0.8 6.4 0.8z m-84.8-6.4c-9.6-4-10.4-5.6-26.4-6.4 6.4 9.6 12.8 11.2 20 20h6.4v-13.6z m320 6.4c-6.4-2.4-12.8-4-20-6.4 7.2 11.2 4 8.8 20 12.8v-6.4z m-712.8 0v12.8c13.6-4 5.6 0.8 13.6-6.4h-6.4c-5.6-7.2 0.8-0.8-7.2-6.4z m-6.4 58.4v6.4c-2.4 0.8-11.2-1.6-6.4 6.4h12.8v6.4c12 4 9.6-4 12.8-6.4 28-1.6 22.4-4 39.2-12.8v-26.4c12.8-4 5.6 0.8 12.8-6.4h6.4c4-12-4-9.6-6.4-12.8v-6.4c-6.4-4-6.4 11.2-12.8 12.8v-6.4H224v20c-4 2.4-8.8 4-12.8 6.4 2.4 6.4 4 12.8 6.4 20h-6.4v6.4h-6.4c2.4-4 4-8.8 6.4-12.8h-6.4c-5.6-7.2 0.8-0.8-6.4-6.4v12.8c-6.4 2.4-12.8 4-20 6.4v-6.4c-1.6-0.8-4-0.8-6.4-0.8z m451.2-45.6v-6.4h-12.8c7.2 7.2 0 3.2 12.8 6.4z m72 0h-6.4c-5.6-7.2 0.8-0.8-6.4-6.4v12.8c12.8-3.2 5.6 1.6 12.8-6.4z m-581.6 39.2h6.4v-20h-6.4v20z m333.6 72v-20c-6.4 2.4-12.8 4-20 6.4v-6.4h-6.4v6.4h-6.4c-2.4-6.4-4-12.8-6.4-20h-6.4c2.4-6.4 4-12.8 6.4-20h-20c3.2 18.4 13.6 44.8 26.4 52h26.4v6.4h20v-6.4c-5.6 1.6-9.6 1.6-13.6 1.6z m39.2-12.8h6.4c-4-12.8 0.8-5.6-6.4-12.8v12.8z m385.6 19.2c-22.4-6.4-16.8-13.6-39.2-20 9.6 16 15.2 24 39.2 26.4v-6.4zM505.6 774.4h6.4v-65.6h6.4v-32.8s4.8-1.6 6.4-12.8H512v-20c12.8-4 5.6 0.8 12.8-6.4h-6.4v-6.4c-9.6 4.8-10.4 5.6-26.4 6.4V624h-26.4c-4 12.8 0.8 5.6-6.4 12.8 9.6 31.2 8 6.4 26.4 20v6.4h6.4v20H512c-1.6 11.2-6.4 44.8-12.8 52V768h6.4v6.4z m385.6-130.4h-12.8c9.6 16 32 28 52 32.8v-20c-12.8-2.4-26.4-4-39.2-6.4v-6.4z m-758.4 58.4v12.8h6.4c-4-12.8 0.8-5.6-6.4-12.8z m-6.4 12.8c-2.4 6.4-4 12.8-6.4 20 6.4 4.8 6.4 8 12.8 12.8v6.4h6.4c-2.4-12.8-4-26.4-6.4-39.2h-6.4z m-20 13.6v12.8h6.4c-3.2-12.8 1.6-5.6-6.4-12.8z m72 26.4c-11.2-2.4-21.6-4-32.8-6.4v6.4h-6.4c5.6 8.8 4.8 8 12.8 12.8v6.4c9.6-4.8 10.4-5.6 26.4-6.4v-12.8z m-78.4 6.4h-6.4v12.8h45.6v-12.8h-6.4c0.8 9.6-17.6 8.8-26.4 6.4v-6.4h-6.4z m412 45.6h-12.8V768h-6.4v32.8c-4 2.4-8.8 4-12.8 6.4-2.4 11.2-4 21.6-6.4 32.8 22.4-6.4 16.8-13.6 39.2-20-0.8-4-0.8-8.8-0.8-12.8z m-320-26.4c7.2-5.6 0.8 0.8 6.4-6.4h-12.8c-2.4 4-4 8.8-6.4 12.8 12.8 3.2 8-3.2 12.8-6.4z m72 26.4c-10.4-4-15.2-6.4-32.8-6.4v-12.8c-12.8-4-5.6 0.8-12.8-6.4h-12.8c6.4 14.4 11.2 18.4 12.8 39.2 7.2-4 16.8-20.8 32.8-12.8v6.4H264v-7.2z m6.4 6.4c9.6 16 12.8 19.2 39.2 19.2v-6.4h-20v-6.4c-6.4-1.6-12.8-4-19.2-6.4z m-137.6 12.8v-6.4H120c7.2 7.2 0 3.2 12.8 6.4z m706.4 7.2v12.8h6.4c-4-12.8 0.8-5.6-6.4-12.8z m-601.6 12.8v-6.4h-12.8c7.2 7.2 0 2.4 12.8 6.4z m235.2-6.4h-20c-2.4 6.4-4 12.8-6.4 20h12.8v-12.8H472c0.8-3.2 0.8-4.8 0.8-7.2z m-274.4 12.8v-6.4h-12.8c7.2 7.2 0 2.4 12.8 6.4z m150.4-6.4v12.8h6.4c-4-12.8 0.8-5.6-6.4-12.8z m-216 6.4h-20v6.4h20v-6.4z m228.8 20c-4-12.8 0.8-5.6-6.4-12.8v12.8h6.4z m46.4-13.6v12.8c12.8-4 5.6 0.8 12.8-6.4h-6.4c-5.6-7.2 0.8-0.8-6.4-6.4z m52 7.2c-6.4-2.4-12.8-4-20-6.4v12.8h20v-6.4z m412-7.2v12.8h6.4c-4-12.8 0.8-4.8-6.4-12.8z m39.2 26.4c-7.2-12.8-8.8-15.2-26.4-20-6.4 12-9.6 10.4-12.8 26.4 6.4 4.8 6.4 8 12.8 12.8 4-9.6 5.6-10.4 6.4-26.4 8.8 5.6 8 4.8 12.8 12.8h12.8c-4.8-6.4 1.6 0-5.6-5.6z m-471.2-6.4c-6.4-2.4-12.8-4-20-6.4v12.8c6.4 2.4 12.8 4 20 6.4v-12.8z m-307.2 19.2h6.4c-4-12.8 0.8-5.6-6.4-12.8v12.8z m-12.8 0v-6.4h-12.8c7.2 7.2-0.8 3.2 12.8 6.4z m235.2-6.4v12.8h6.4c-4-12.8 0.8-4.8-6.4-12.8z m562.4 6.4h-12.8c7.2 7.2 0 2.4 12.8 6.4v-6.4z m-784.8 32.8h6.4v-26.4h-6.4v26.4z m457.6-12.8H584c-5.6-7.2 0.8-0.8-6.4-6.4v12.8c12.8-4 5.6 0.8 12.8-6.4z m-215.2 26.4c-4-15.2-1.6-12-12.8-20 4 12.8-0.8 5.6 6.4 12.8v6.4c1.6 0.8 4 0.8 6.4 0.8z m117.6-7.2c5.6 7.2-0.8 0.8 6.4 6.4v-12.8h-12.8c5.6 7.2-0.8 1.6 6.4 6.4z m-360 7.2v12.8h6.4c-4-12.8 0.8-5.6-6.4-12.8z m137.6 19.2c12.8-4 5.6 0.8 12.8-6.4h-6.4c-5.6-7.2 0.8-0.8-6.4-6.4v12.8z m130.4 20v-12.8c-8.8-7.2-9.6-13.6-20-20 3.2 14.4 4 18.4 12.8 26.4v6.4h7.2z m92-32.8v12.8c12.8-4 5.6 0.8 12.8-6.4h-6.4c-5.6-7.2 0.8-0.8-6.4-6.4z m-353.6 6.4v12.8h6.4c-3.2-12.8 1.6-5.6-6.4-12.8z m392.8 20v-6.4h-12.8c7.2 6.4-0.8 2.4 12.8 6.4z m-379.2 19.2c-4-15.2-1.6-12-12.8-20 4 12.8-0.8 5.6 6.4 12.8v6.4c1.6 0.8 4 0.8 6.4 0.8z m136.8-19.2v12.8h6.4c-3.2-12.8 1.6-5.6-6.4-12.8z m118.4 25.6h6.4c-4-12.8 0.8-5.6-6.4-12.8v12.8zM198.4 144.8h10.4c0.8-12.8-1.6-25.6 5.6-32 5.6-1.6 10.4-3.2 16-5.6v-10.4h5.6v-10.4h5.6c1.6-5.6 3.2-10.4 5.6-16-8-4.8-8.8-10.4-16-16-1.6 5.6-3.2 10.4-5.6 16h-5.6v16h-5.6v10.4c-10.4 19.2-16 8.8-16 42.4-7.2-3.2 1.6-2.4-5.6-5.6h-16V128c-13.6 0.8-17.6 2.4-26.4 5.6v16h5.6v5.6c10.4-3.2 20.8-7.2 32-10.4v10.4c8 1.6 6.4-8.8 10.4-10.4z" p-id="2189"></path><path d="M224.8 86.4h5.6c4.8 2.4-10.4 10.4-10.4 10.4 1.6-3.2 3.2-7.2 4.8-10.4zM299.2 86.4h-16v5.6h16v-5.6zM145.6 102.4v16h5.6c1.6-4.8 10.4-16.8 5.6-26.4h-5.6c-4 10.4 0 4-5.6 10.4zM320 92h-10.4c5.6 5.6 0 2.4 10.4 5.6v-5.6zM113.6 112.8h-5.6v16h5.6v-16zM176.8 165.6V176h5.6c1.6-4.8 10.4-11.2 5.6-20.8h-5.6c-3.2 10.4 0.8 4.8-5.6 10.4zM161.6 187.2c-7.2-1.6-14.4-3.2-20.8-5.6-1.6 10.4-3.2 20.8-5.6 32 20.8-1.6 28-8.8 32-26.4h10.4v-10.4h-10.4c-2.4 3.2-4 6.4-5.6 10.4zM372.8 192c-12.8-3.2-9.6-1.6-16-10.4h-5.6v16h20.8c0.8-1.6 0.8-4 0.8-5.6zM219.2 229.6h16V224h-16v5.6zM309.6 244.8h-10.4c6.4 5.6 0 2.4 10.4 5.6v-5.6zM97.6 271.2v10.4c5.6-3.2 10.4-7.2 16-10.4v-16h-5.6c-3.2 12.8-0.8 10.4-10.4 16zM81.6 287.2c-12 4-4 4-16 0v16c12.8 4.8 19.2 4.8 26.4 16h20.8v-5.6c-17.6-3.2-10.4-7.2-16-10.4h-16c5.6-6.4 8-9.6 0.8-16zM119.2 329.6c-3.2-10.4 0.8-4.8-5.6-10.4v10.4h5.6zM129.6 324.8v10.4h5.6c-3.2-10.4 0-4.8-5.6-10.4zM66.4 356H72c-4-10.4 0-4-5.6-10.4v10.4zM92.8 366.4c3.2 10.4-0.8 4.8 5.6 10.4v-5.6c5.6-4.8 0.8 0.8 5.6-5.6-4 0.8-8 0.8-11.2 0.8zM44.8 372c4.8 5.6-0.8 0.8 5.6 5.6 4.8 5.6-0.8 0.8 5.6 5.6v-10.4c-4-0.8-7.2-0.8-11.2-0.8zM60.8 404v10.4h5.6c-3.2-10.4 0.8-4.8-5.6-10.4z" p-id="2190"></path></svg>
							</view>
							<view class="">我的藏品</view>
						</view>
						<view v-if="canIUseTrade" class="flex-box menu_box" @tap.stop.prevent="navAdministration()">
							<!-- <view class="menu-img my-cash"></view> -->
							<view class="icon">
								<svg t="1680862948581" class="icon" viewBox="0 0 1194 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2661" width="34" height="34"><path d="M920.8832 903.799467H279.773867A178.090667 178.090667 0 0 1 101.6832 725.7088V298.2912A178.090667 178.090667 0 0 1 279.773867 120.200533h641.109333a178.090667 178.090667 0 0 1 178.090667 178.090667v427.4176a178.090667 178.090667 0 0 1-178.090667 178.090667zM315.392 797.013333h569.873067a106.8544 106.8544 0 0 0 106.8544-106.8544V440.763733H208.5376v249.326934A106.8544 106.8544 0 0 0 315.392 797.013333z m569.873067-570.026666H315.392a106.8544 106.8544 0 0 0-106.8544 106.8544h783.581867a106.8544 106.8544 0 0 0-106.8544-106.8544zM687.1552 583.236267h146.926933a51.2 51.2 0 0 1 51.2 51.2v4.4544a51.2 51.2 0 0 1-51.2 51.2h-146.926933a51.2 51.2 0 0 1-51.2-51.2v-4.4544a51.2 51.2 0 0 1 51.2-51.2z" fill="#333333" p-id="2662"></path></svg>
							</view>	
							<view class="">我的钱包</view>
						</view>
						<!-- <view class="menu menu--detail flex-box" @tap.stop.prevent="goLoginPage('/pages/order/index')">
							<view class="menu-img my-order"></view>
							<view class="menu__title f-28">我的订单</view>
						</view>
						<view v-if="canIUseTrade" class="menu menu--detail flex-box"
							@tap.stop.prevent="goLoginPage('./sale/index/index')">
							<view class="menu-img my-sale"></view>
							<view class="menu__title f-28">寄售管理</view>
						</view> -->
						<!-- <view v-if="canIUseTrade" class="menu menu--detail flex-box"
							@tap.stop.prevent="goLoginPage('./sale/index/index')">
							<view class="menu-img my-sale"></view>
							<view class="menu__title f-28">寄售管理</view>
						</view> -->
					</view>
				</view>
			</view>
			
			

			
			<view class="section cp-section">
				<view class="vertical-menu-list">
					<view class="menu menu--detail dis-flex flex-y-center"
						@tap.stop.prevent="goLoginPage('/pages/order/index')">
						<view class="menu__title-wrapper dis-flex flex-y-center">
							<!-- <view class="dy-iconfont icon-order f-40"></view> -->
							<svg t="1681017317750" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1049" width="24" height="24"><path d="M837.1 242.9c0-18.5 15-33.5 33.5-33.5s33.5 15 33.5 33.5v593c0 68-55.1 123.1-123.1 123.1H244.1c-68 0-123.1-55.1-123.1-123.1V187c0-68 55.1-123.1 123.1-123.1h626.5c18.5 0 33.5 15 33.5 33.5s-15 33.5-33.5 33.5H244.1c-14.9 0-29.1 5.9-39.6 16.4a55.924 55.924 0 0 0-16.4 39.6v648.9c0 14.9 5.9 29.1 16.4 39.6 10.5 10.5 24.7 16.4 39.6 16.4h537c14.9 0 29.1-5.9 39.6-16.4 10.5-10.5 16.4-24.7 16.4-39.6V242.9z" fill="#434655" p-id="1050"></path><path d="M333.6 433.2c-18.5 0-33.5-15-33.5-33.5s15-33.5 33.5-33.5h358c18.5 0 33.5 15 33.5 33.5s-15 33.5-33.5 33.5h-358zM333.6 612.2c-18.5 0-33.5-15-33.5-33.5s15-33.5 33.5-33.5h223.8c18.5 0 33.5 15 33.5 33.5s-15 33.5-33.5 33.5H333.6z" fill="#EE772B" p-id="1051"></path></svg>
							<view class="menu__title f-28">我的订单</view>
						</view>
					</view>
				</view>
			</view>
			
			
			<view class="section cp-section">
				<view class="vertical-menu-list">
					
					<view class="menu menu--detail dis-flex flex-y-center"
						@tap.stop.prevent="goLoginPage('./sale/index/index')">
						<view class="menu__title-wrapper dis-flex flex-y-center">
							<!-- <view class="dy-iconfont icon-invite f-40"></view> -->
							<svg t="1681017317750" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1049" width="24" height="24"><path d="M837.1 242.9c0-18.5 15-33.5 33.5-33.5s33.5 15 33.5 33.5v593c0 68-55.1 123.1-123.1 123.1H244.1c-68 0-123.1-55.1-123.1-123.1V187c0-68 55.1-123.1 123.1-123.1h626.5c18.5 0 33.5 15 33.5 33.5s-15 33.5-33.5 33.5H244.1c-14.9 0-29.1 5.9-39.6 16.4a55.924 55.924 0 0 0-16.4 39.6v648.9c0 14.9 5.9 29.1 16.4 39.6 10.5 10.5 24.7 16.4 39.6 16.4h537c14.9 0 29.1-5.9 39.6-16.4 10.5-10.5 16.4-24.7 16.4-39.6V242.9z" fill="#434655" p-id="1050"></path><path d="M333.6 433.2c-18.5 0-33.5-15-33.5-33.5s15-33.5 33.5-33.5h358c18.5 0 33.5 15 33.5 33.5s-15 33.5-33.5 33.5h-358zM333.6 612.2c-18.5 0-33.5-15-33.5-33.5s15-33.5 33.5-33.5h223.8c18.5 0 33.5 15 33.5 33.5s-15 33.5-33.5 33.5H333.6z" fill="#EE772B" p-id="1051"></path></svg>
							<view class="menu__title f-28">寄售管理</view>
						</view>
					</view>
			
				</view>
			</view>
			
			<view class="section cp-section">
				<view class="vertical-menu-list">
					<view class="menu menu--detail dis-flex flex-x-between flex-y-center" @tap.stop.prevent="gitnavRealName(1)">
						<view class="menu__title-wrapper flex-fixed dis-flex flex-y-center">
							<!-- <view class="dy-iconfont icon-gxbh f-40"></view> -->
							<svg t="1681017461463" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1525" width="24" height="24"><path d="M944 876.4l-94-175.5c10.1-22.7 15.8-45.9 15.8-71 0.4-95.3-76.3-172.6-171.6-173h-0.8c-94.7 0-171.8 76.8-172.1 171.8-0.1 24.3 5.1 48.5 15.1 70.8l0.8 1.8-95.7 173.4c-2.4 4.3-1.9 9.5 1 13.4 2.9 3.7 7.7 5.5 12.3 4.6l83.7-18.9 28.4 79.9c1.5 4.4 5.5 7.6 10.4 8.2h1c4.6 0.1 8.9-2.4 10.9-6.4l84.2-155.7c14.9 1.5 23.5 1.8 37.8 0.3l84.6 156.2c2.1 4 6.2 6.4 10.7 6.4h1.2c4.8-0.4 9-3.6 10.7-8.2l28.8-79.7 83.5 19.4c4.6 1.1 9.4-0.7 12.2-4.4 2.9-3.8 3.2-9.1 1.1-13.4z m-367.1-13.5L564 826.7c-0.7-2.1-2.8-3.2-4.8-2.8l-38.2 8.6 49-88c17 17.3 30.6 25.3 51.6 36.9l-44.7 81.5zM692.7 745c-64-0.3-115.9-52.8-115.6-116.9 0.1-64 52.1-115.8 116-115.8h0.4c64.2 0.3 115.9 52.6 115.6 116.7-0.1 64.3-52.2 116.2-116.4 116z m137.1 91.2c-2.8-0.6-5.7 1-6.6 3.6l-14.8 41.4-51.2-94.2c24.2-13.4 40.2-23 59.9-42.6l56 101.7-43.3-9.9z" fill="#EE772B" p-id="1526"></path><path d="M411.4 873.6c0 16.6-12.3 30.6-28.2 33.1v0.4H143.9c-33.2 0-60.4-28.2-60.4-63.1V123c0-34.7 27.1-63.1 60.4-63.1H815c33.2 0 60.4 28.2 60.4 63.1v331.5c0 17.7-14.5 32.2-32.2 32.2S811 472.3 811 454.6V296.3v-1.9l-1.4-168.2-658.7 1.8-1.9 713.1 66.1-0.3c2.2-0.6 4.7-0.7 7.1-0.7h161v0.4c15.9 2.6 28.2 16.4 28.2 33.1z" fill="#434655" p-id="1527"></path><path d="M699.8 296.2H261.9c-19.4 0-35.3-15.9-35.3-35.3s15.9-35.3 35.3-35.3h437.9c19.4 0 35.3 15.9 35.3 35.3s-15.8 35.3-35.3 35.3zM476.4 410.8c19.4 0 35.3 15.9 35.3 35.3s-15.9 35.3-35.3 35.3H261.2c-19.4 0-35.3-15.9-35.3-35.3s15.9-35.3 35.3-35.3h215.2zM412.8 667H260.6c-19.4 0-35.3-15.9-35.3-35.3s15.9-35.3 35.3-35.3h152.1c19.4 0 35.3 15.9 35.3 35.3 0.2 19.4-15.7 35.3-35.2 35.3z" fill="#434655" p-id="1528"></path></svg>
							<view class="menu__title f-28">实名认证</view>
						</view>
						<template v-if="isLogin" >
							<view v-if="address_id == 0" class="menu__detail f-28 onelist-hidden">立即实名认证</view>
							<view v-if="address_id > 1" class="menu__detail f-28">已实名认证</view>
						</template>
					</view>
					
				</view>
			</view>
			
			
		<!-- 	<view class="section cp-section">
				<view class="vertical-menu-list">
					<view class="menu menu--detail dis-flex flex-x-between flex-y-center" @tap.stop.prevent="navRealName(1)">
						<view class="menu__title-wrapper flex-fixed dis-flex flex-y-center">
							<view class="dy-iconfont icon-gxbh f-40"></view>
							<view class="menu__title f-28">支付开户</view>
						</view>
						<template v-if="isLogin" >
							<view v-if="user_status_lianlian == 0" class="menu__detail f-28 onelist-hidden">{{user_status_lianlian_msg}}</view>
							<view  v-if="user_status_lianlian == 3" class="menu__detail f-28 onelist-hidden">{{user_status_lianlian_msg}}</view>
							<view  v-if="user_status_lianlian == 2" class="menu__detail f-28 onelist-hidden">{{user_status_lianlian_msg}}</view>
							<view v-if="user_status_lianlian == 1 && is_expire == 1" class="menu__detail f-28">已开户</view>
							<view v-if="user_status_lianlian == 1 && is_expire == 2" class="menu__detail f-28">证件信息已过有效期，请重新提交</view>
							<view v-if="is_open_sande" class="menu__detail f-28">已开户</view>
							<view v-else class="menu__detail f-28">去开户</view>
						</template>
					</view>
					
				</view>
			</view> -->
			
			
			<view class="section cp-section">
				<view class="vertical-menu-list">
					
					<view class="menu menu--detail dis-flex flex-y-center"
						@tap.stop.prevent="goLoginPage('./invite/index2')">
						<view class="menu__title-wrapper dis-flex flex-y-center">
							<!-- <view class="dy-iconfont icon-invite f-40"></view> -->
							<svg t="1681017394846" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1312" width="24" height="24"><path d="M530.7 64.2c-135.8 0-245.9 110.1-245.9 245.9S394.9 556 530.7 556s245.9-110 245.9-245.9c0-135.6-110.1-245.9-245.9-245.9z m122 366.2c-32.3 32.3-76.3 50.6-122 50.4-45.7 0-89.7-18.1-122-50.4s-50.6-76.3-50.4-122c0-45.7 18.1-89.7 50.4-122s76.3-50.6 122-50.4c95.4 0 172.6 78.9 172.6 172.6-0.1 45.5-18.3 89.5-50.6 121.8z" fill="#434655" p-id="1313"></path><path d="M126.9 961.9c-20.3 0-36.7-16.5-36.7-36.7 0-242.2 198.3-440.5 440.5-440.5 20.1 0 36.7 16.6 36.7 36.7 0 20.3-16.5 36.7-36.7 36.7-202 0-367.2 165.2-367.2 367 0 20.3-16.5 36.7-36.6 36.8z" fill="#434655" p-id="1314"></path><path d="M892.3 796.7H609.5c-20.3-0.1-36.6-16.5-36.7-36.7 0-20.1 16.5-36.7 36.7-36.7h282.7c20.1 0 36.7 16.6 36.7 36.7 0 20.2-16.5 36.5-36.6 36.7z" fill="#EE772B" p-id="1315"></path><path d="M750.9 938.1c-20.3-0.1-36.6-16.5-36.7-36.7V618.5c0-20.1 16.5-36.7 36.7-36.7 20.3 0 36.7 16.6 36.7 36.7v282.7c-0.1 20.3-16.5 36.7-36.7 36.9z" fill="#EE772B" p-id="1316"></path></svg>
							<view class="menu__title f-28">邀请好友</view>
						</view>
					</view>
			
				</view>
			</view>
			
			<view class="section cp-section" v-if="isLogin">
				<view class="vertical-menu-list">
					<view class="menu menu--detail dis-flex flex-y-center"
						@tap.stop.prevent="goLoginPage('./setting/security')">
						<view class="menu__title-wrapper dis-flex flex-y-center">
							<!-- <view class="dy-iconfont icon-shouhou f-40"></view> -->
							<svg t="1681017602228" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1737" width="24" height="24"><path d="M768.6 131.3c-12-21-34.7-34.2-58.9-34.2H311.6c-24.3 0-46.9 13.1-59 34.3L53.4 480.3c-11.8 20.8-11.8 46.5 0 67.3l199 348.9c12.1 21.2 34.7 34.3 59 34.3h398.2c24.3 0 46.9-13.1 59-34.2l199.5-348.9c12-20.8 12-46.6 0-67.4l-199.5-349z m-55.7 737H308.3L106.1 514l202.2-354.4h404.6L915.6 514 712.9 868.3z" fill="#434655" p-id="1738"></path><path d="M510.9 354.3c-56.8 0-109.9 30.6-138.3 79.9-28.5 49.3-28.5 110.4 0 159.7 28.5 49.3 81.4 79.9 138.3 79.9 88.1 0 159.7-71.6 159.7-159.7S599 354.3 510.9 354.3z m84.3 208.3c-17.4 30-49.7 48.7-84.3 48.7-53.7 0-97.3-43.6-97.3-97.3 0-53.7 43.6-97.3 97.3-97.3 34.7 0 66.9 18.7 84.3 48.7 17.3 29.9 17.3 67.2 0 97.2z" fill="#EE772B" p-id="1739"></path></svg>
							<view class="menu__title f-28">安全密码管理</view>
						</view>
					</view>
			
				</view>
			</view>
			
			
			<button v-if="!isWeixin && isLogin" class="btn-logout" @tap.stop.prevent="onLogout" hover-class="hover">退出登录</button>
			
		</view>
		<view class="bsn">
			<image class="img_bsn" src="http://img.btcys.com/btcys/20230410231337e30fb0395.png" mode="widthFix"></image>
		</view>
	</view>
</template>

<script>
	import {
		canIUseGiven,
		canIUseTrade
	} from "@/module.js";
	import {
		isWeixin
	} from '@/utils/verify.js';
	const app = getApp();
	export default {
		data() {
			return {
				is_open_sande:false,
				is_open_lianlian:true,
				isWeixin:true,
				isLogin: false,
				canIUseGiven: canIUseGiven,
				canIUseTrade: canIUseTrade,
				//区块链地址数
				nft_keys_num: 0,
				//单个链情况下，显示的nft地址
				nft_address: '',
				userInfo: {


					avatarUrl: '',
					nickName: '',
				},

				statusBarHeight: '',
				navHeight: '',
				showAssetsBlank: '',
				collect_num: 0,

				order: {
					order_id: '',

					goods: [{
						spec_value: ''
					}],

					order_type: 0,
					goods_type: 0,
					sort_no_status: 0,
					sort_no: '',
					poster_image_url: ''
				},

				file_path: '',
				canIUseInvite: false,
				user_status_lianlian:0,//实名状态 0--未实名  1--实名成功 2--实名失败 3--实名中
				user_status:'未实名',
				address_id:'',
				user_status_lianlian_msg:'',
				is_expire:0,//实名是否失败 1--正常 2--过期
			};
		},
		/**
		 * 生命周期函数--监听页面加载
		 */
		onLoad(options) {
			this.isWeixin = isWeixin();
			this.canIUseInvite = !isWeixin();
		},
		onReady(options) {
			// #ifndef MP
			const {
				statusBarHeight,
				windowTop
			} = uni.getSystemInfoSync();
			this.setData({
				statusBarHeight,
				navHeight: windowTop
			});
			// #endif

			// #ifdef MP
			const {
				statusBarHeight
			} = uni.getSystemInfoSync();
			const menuButtonRect = uni.getMenuButtonBoundingClientRect();
			let navHeight = menuButtonRect.height + (menuButtonRect.top - statusBarHeight) * 2;
			this.setData({
				statusBarHeight,
				navHeight
			})
			// #endif
		},
		/**
		 * 生命周期函数--监听页面显示
		 */
		onShow() {
			let _this = this;
			_this.getUserDetail();
		},
		methods: {
			goApp(){
				app.navigationTo('http://www.btcys.com/app/')
			},
			/**
			 * 获取当前用户信息
			 */
			getUserDetail() {
				app._get('user.index/detail', {}, (result) => {
					if (1 == result.code) {
						uni.setStorageSync('is_ll_withhold',result.data.is_ll_withhold)
						let data = result.data;
						let {
							is_open_sande,
							is_open_lianlian,
							order,
							userInfo
						} = data;
						let nftKeysNum = 0;
						let nftAddress = '';
						let keysName = ['nft_key', 'myl_nft_key', 'bsn_nft_key'];
						this.is_expire = data.is_expire
						if (userInfo) {
							for (var i in keysName) {
								let keyVal = userInfo[keysName[i]]
								if (keyVal) {
									nftAddress = keyVal;
									nftKeysNum++;
								}
							}
							this.user_status_lianlian_msg = userInfo.user_status_lianlian_msg;
							this.address_id = userInfo.address_id;
							this.user_status_lianlian = userInfo.user_status_lianlian;
							// if(this.user_status_lianlian == 0){
							// 	this.user_status = '未实名'
							// }else if(this.user_status_lianlian == 1){
							// 	this.user_status = '已认证'
							// }else if(this.user_status_lianlian == 2){
							// 	this.user_status = '未实名'
							// }else{
							// 	this.user_status = '审核中'
							// }
							this.nft_address = nftAddress;
							this.nft_keys_num = nftKeysNum;
						}
						this.setData({
							// showAssetsBlank: order.order_id == undefined || !order.order_id
						});

						this.setData(data);

						this.setData({
						  isLogin: !!userInfo
						});
						uni.setStorageSync('userInfo',userInfo)
						uni.setStorageSync('isOpenStatus',{is_open_sande,
							is_open_lianlian})
						uni.setStorageSync('userId_no',result.data.userInfo.address_default.ID_number)
					}
				});
			},

			/**
			 * 订单导航跳转
			 */
			onTargetOrder(e) {
				let _this = this;

				if (!_this.onCheckLogin()) {
					return false;
				} // 记录formid

				app.saveFormId(e.detail.formId);
				let urls = {
					all: '/pages/order/index?type=all',
					payment: '/pages/order/index?type=payment',
					received: '/pages/order/index?type=received',
					refund: '/pages/order/refund/index'
				}; // 转跳指定的页面

				uni.navigateTo({
					url: urls[e.currentTarget.dataset.type]
				});
			},

			/**
			 * 菜单列表导航跳转
			 */
			onTargetMenus(e) {
				let _this = this;

				if (!_this.onCheckLogin()) {
					return false;
				} // 记录formId

				app.saveFormId(e.detail.formId);
				uni.navigateTo({
					url: '/' + e.currentTarget.dataset.url
				});
			},

			/**
			 * 跳转我的钱包页面
			 */
			onTargetWallet(e) {
				let _this = this;

				if (!_this.onCheckLogin()) {
					return false;
				} // 记录formId

				app.saveFormId(e.detail.formId);
				uni.navigateTo({
					url: './wallet/index'
				});
			},

			/**
			 * 跳转能量明细页
			 */
			onTargetPoints(e) {
				let _this = this;

				if (!_this.onCheckLogin()) {
					return false;
				} // 记录formId

				app.saveFormId(e.detail.formId);
				uni.navigateTo({
					url: '../points/log/index'
				});
			},

			/**
			 * 跳转到登录页
			 */
			onLogin() {
				uni.navigateTo({
					url: '../login/login'
				});
			},

			/**
			 * 验证是否已登录
			 */
			onCheckLogin() {
				let _this = this;

				if (!_this.isLogin) {
					// App.showError('很抱歉，您还没有登录');
					app.doLogin();
					return false;
				}

				return true;
			},

			//////// private methods ////////

			// 复制地址
			copyAddress: function(e) {
				uni.setClipboardData({
					data: e.currentTarget.dataset.content
				});
			},
			/**
			 * 跳转页面
			 * path  跳转路径
			 * isCheckLogin  是否检测登陆状态
			 */
			goLoginPage(path, isCheckLogin = true) {
				if (isCheckLogin && !this.onCheckLogin()) {
					return false;
				}
				// #ifndef APP-PLUS
				uni.navigateTo({
					url: path
				});
				// #endif
				// #ifdef APP-PLUS
				if(path == './invite/index'){
					uni.navigateTo({
						url: './invite/index1',
					});
				}else{
					uni.navigateTo({
						url: path
					});
				}
				// #endif
				
			},
			gitnavRealName(){
				uni.navigateTo({
					url: './address/index'
				});
			},
			navRealName(){
				if(this.address_id == 0){
					app.showError('您实名，请先实名');
					return
				}
				
				if(!this.is_open_sande){
					app._post_form('user/getSanDeWallet', {}, function(result) {
						console.log(result)
						if (1 == result.code) {
							app.navigationTo(result.data.pay_url)
						}else{
							app.showError(result.msg);
						}
					}, null, function() {
						// 解除按钮禁用
						app.showError(result.msg);
					});
				}else{
					console.log('asd')
					app.showError('您已开户，请勿重复操作');
					// uni.redirectTo({
					// 	url: './address/index'
					// });
					// if(this.is_expire == 1){
					// 	console.log('已实名')
					// 	uni.navigateTo({
					// 		url: './address/index'
					// 	});
					// }else{
					// 	uni.navigateTo({
					// 		url: './realName/correct'
					// 	});
					}
			},
			// 跳转到我的藏品
			myAssets: function(e) {
				if (!this.onCheckLogin()) {
					return false;
				}
				uni.navigateTo({
					url: './assets/index'
				})
			},

			unrelease: function(e) {
				app.showError('内测功能，暂未开放');
			},
			// 退出登录
			onLogout: function(e) {
				uni.showModal({
					content: '确定退出登录吗？',
					success: (res) => {
						if (res.confirm) {
							// 退出登录
							// app._post_form('user/logout', {},(result) => {
							// 	console.log(result)
							// },false,() => {}
							// );
							try {
								uni.clearStorageSync();
								uni.reLaunch({
									url: '/pages/index/index'
								});
							} catch (e) {
								// Do something when catch error
							}
						}
					}
				});
			},
			navAdministration(){
				if (!this.onCheckLogin()) {
					return false;
				}else{
					uni.navigateTo({
						url: './account/account'
					})
				}
			}
		}
	};
</script>
<style lang="scss" scoped>
	.container {
		padding: 150rpx 30rpx 30px;
		// background-image: url('https://qiniu.wiod.cn/detail%2F%E6%B1%9F%20(1).png');
		// background-position: right top;
		// background-size: 100%;
		// background-repeat: no-repeat;
		// background-image: linear-gradient(#080808,#090909, #191A1B,#1A1B1C);
		// background-image: linear-gradient(#1A1B1C,#191A1B, #090909,#080808);
		.container-header{
			// background: linear-gradient(to bottom left, #F3d66e, #E7C56F);
			background: url('../../static/images/user_bg.png') repeat  center;
			padding: 40rpx;
			padding-bottom: 1rpx;
			box-sizing: border-box;
			border-radius: 20rpx;
			margin-bottom: 40rpx;
		}
	}

	.header {
		// margin-bottom: 30rpx;
		// padding-bottom: 30rpx;
		position: relative;
		// width: 100%;
		// background: rgb(39, 39, 39	);
		// border-radius: 36rpx;
	}

	.header .nav-bar {
		height: 44px;
		height: calc(44px + constant(safe-area-inset-top));
		height: calc(44px + env(safe-area-inset-top));
		padding: 0 30rpx;
	}

	.header .header-container {
		padding-left: 20rpx;
		// margin-bottom: 40rpx;
		// border: 1px solid rgba(0, 0, 0, 0)
	}

	.header .user-info {
		// margin-top: -87rpx;
		// margin-bottom: 30rpx;
		// width: 100%;
		// text-align: center;
		
		display: flex;
	}

	.header .user__avatar-wrapper {
		// margin: 0 auto;
		width: 116rpx;
		height: 116rpx;
		border-radius: 50%;
		overflow: hidden;
		margin-right: 12rpx;
		// box-sizing: border-box;
		// background: #fff;
		// border: 2px solid #fff;
	}
	.header .user_info{
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		flex-direction: column;
		    align-items: flex-start;
	}
	.header .user_info .tag{
		// margin: 0 auto;
		margin-left: 20rpx;
		width: 20%;
		position: absolute;
		right: 20rpx;
		top: 0rpx;
	}
	.header .user__nicknames {
		// margin-top: 28rpx;
		font-size: 32rpx;
		color:$uni-text-color-inverse;
		// text-align: center;
	}
	.header .user__avatar {
		width: 100%;
		height: 100%;
	}

	.header .user__nickname {
		// margin-top: 28rpx;
		font-size: 32rpx;
		color: $uni-text-color-inverse;
		// text-align: center;
	}

	.header .btn-contact {
		font-size: 48rpx;
		padding: 14rpx 40rpx;
		position: absolute;
		top: 0;
		right: 0;
	}

	.header .nft-address-view {
		height: 38rpx;
		text-align: center;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.header .nft-address {
		margin-right: 22rpx;
		display: inline-block;
		zoom: 1;
		max-width: 413rpx;
		font-size: 28rpx;
		color: $uni-text-color-grey;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.header .nft-address-copy {
		vertical-align: middle;
		font-size: 32rpx;
		color: #ccc;
		cursor: pointer;
	}

	.header .attestation-btn {
		margin: 0 auto;
		padding-left: 4rpx;
		width: 144rpx;
		height: 38rpx;
		background: linear-gradient(-64deg, #97461A 0%, #FFF0D5 0%, #FFE7C5 56.00000000000001%, #FEF0D5 100%);
		border-radius: 4rpx;
		text-align: center;
		font-size: 24rpx;
		font-weight: 400;
		color: #574F3F;
	}

	.header .attestation-btn.active {
		background: linear-gradient(-64deg, #97461A 0%, #F9DDA8 0%, #FFD392 56.00000000000001%, #F9DDA8 100%);
		color: #664E20;
	}

	.vertical-menu-list {
		// margin-top: 40rpx;
	}

	.vertical-menu-list .menu {
		// height: 110rpx;
		padding: 0 30rpx 0 30rpx;
		position: relative;
	}

	.vertical-menu-list .menu--detail:after,
	.vertical-menu-list button.menu--detail:after {
		content: '\e601' !important;
		font-family: 'dy-iconfont';
		color: $uni-text-color-grey;
		font-size: 36rpx;
		position: absolute;
		top: 50%;
		right: 20rpx;
		transform: translateY(-50%);
	}

	.vertical-menu-list button.menu--detail {
		background: none;
	}

	.vertical-menu-list .dy-iconfont {
		color: $uni-text-color;
	}

	.vertical-menu-list .menu__title {
		color: $uni-text-color;
		margin-left: 30rpx;
		font-size: 26rpx;
	}

	.vertical-menu-list .menu__detail {
		margin-right: 40rpx;
		font-size: 24rpx;
		color: $uni-text-color-grey;
	}
	.btn-logout{
		align-items: center;
		width: 100%;
		height: 88rpx;
		line-height: 88rpx;
		border-radius: 20rpx;
		background-color: $uni-bg-color;
		font-size: 28rpx;
		margin: 0 auto;
		color: $uni-text-color;
		text-align: center;
	}
	/* 地址弹窗 */
	.address-alert {
		background: #fff;
		position: relative;
		text-align: center;
	}

	.address-alert .alert-header {
		padding: 60rpx 50rpx 20rpx;
	}

	.address-alert .alert__content {
		margin-top: 40rpx;
		word-break: break-all;
		text-align: left;
		line-height: 46rpx;
	}

	.address-alert .btn-copy {
		padding: 30rpx 0;
	}

	.address-alert .btn-close-wrapper {
		padding: 30rpx;
		position: absolute;
		top: -60rpx;
		right: -60rpx;
	}

	.address-alert .btn-close {
		width: 54rpx;
		height: 54rpx;
		background-color: #fff;
		border-radius: 50%;
		text-align: center;
		line-height: 54rpx;
	}

	.address-alert .btn-close .iconfont {
		color: #ccc;
		font-size: 46rpx;
	}

	/* 最新的藏品 */
	.latest-assets {
		padding: 40rpx;
	}

	.latest-assets .assets-container {
		background-color: #f9f9f9;
		border-radius: 30rpx;
		padding: 40rpx 40rpx 0;
	}

	.latest-assets .assets__img-wrapper {
		height: 370rpx;
		border-radius: 10rpx;
		margin-top: 20rpx;
		overflow: hidden;
	}

	.latest-assets .assets__img {
		width: 100%;
		height: 100%;
	}

	.latest-assets .assets-bottom {
		height: 120rpx;
	}

	.latest-assets .btn-detail {
		width: 172rpx;
		height: 72rpx;
		border-radius: 36rpx;
		background: $uni-bg-color-main-linear;
		text-align: center;
		line-height: 72rpx;
	}

	.assets-blank {
		margin-top: 300rpx;
	}

	.section {
		padding: 34rpx 30rpx;
		background: $uni-bg-color;
		border-radius: 20rpx;
		margin-bottom: 30rpx;
	}

	.section-title {
		font-size: 30rpx;
		font-weight: 400;
		color: $uni-text-color-inverse;
		margin-bottom: 20rpx;
	}

	.section.cp-section {
		padding: 20rpx 0;
	}

	.section.cp-section .section-title {
		padding: 0 30rpx;
	}

	.horizontal-menu-list_main {
		height: 60rpx;
		line-height: 60rpx;
	}
	.horizontal-menu-list {
		height: 120rpx;
		// line-height: 60rpx;
	}

	.horizontal-menu-list .menu {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.horizontal-menu-list .menu .dy-iconfont {
		font-size: 46rpx;
		color: #d8b059;
	}

	.horizontal-menu-list .menu__ic image {
		width: 50rpx;
		height: 50rpx;
	}

	.horizontal-menu-list .menu__title {
		margin-top: 10rpx;
		color: $uni-text-color;
	}

	.horizontal-menu-list .menu-img {
		margin-bottom: 16rpx;
		width: 60rpx;
		height: 60rpx;
		background-position: center;
		background-repeat: no-repeat;
	}

	.horizontal-menu-list .menu-img.my-cp {
		// background-image: url('https://qiniu.wiod.cn/detail/my-cp.png');
		background-image: url(@/static/images/myhome/iconA.png);
		background-size: 45rpx 45rpx;
	}
	.horizontal-menu-list .menu-img.my-cash {
		// background-image: url('https://qiniu.wiod.cn/detail/cash.png');
		background-image: url(@/static/images/myhome/iconB.png);
		background-size: 45rpx 45rpx;
	}

	.horizontal-menu-list .menu-img.my-order {
		// background-image: url('https://qiniu.wiod.cn/detail/my-order.png');
		background-image: url(@/static/images/myhome/iconC.png);
		background-size: 45rpx 45rpx;
	}


	.horizontal-menu-list .menu-img.my-sale {
		// background-image: url('https://qiniu.wiod.cn/detail/my-Market.png');
		background-image: url(@/static/images/myhome/iconD.png);
		background-size: 45rpx 45rpx;
	}
	
	.horizontal-menu-list .menu-img.my-hdzx {
		// background-image: url('https://imgcdn.ecbao.cn/nft/user/menu_icon_3.png');
		background-image: url(@/static/images/myhome/hdzx.png);
		background-size: 54rpx 58rpx;
	}
	
	.horizontal-menu-list .menu-img.my-dhzx {
		// background-image: url('https://imgcdn.ecbao.cn/nft/user/menu_icon_3.png');
		background-image: url(@/static/images/myhome/dhzx.png);
		background-size: 54rpx 54rpx;
	}
	.horizontal-menu-list .menu-img.my-kfzx {
		// background-image: url('https://imgcdn.ecbao.cn/nft/user/menu_icon_3.png');
		background-image: url(@/static/images/myhome/kfzx.png);
		background-size: 54rpx 56rpx;
	}
	.horizontal-menu-list .menu-img.my-APPxz {
		// background-image: url('https://imgcdn.ecbao.cn/nft/user/menu_icon_3.png');
		background-image: url(@/static/images/myhome/APPxz.png);
		background-size: 50rpx 56rpx;
	}
	
	.list-item{
		margin: 50rpx 0rpx;
	}
	.jade-shop{
		position: absolute;
		right: -30rpx;
		top: 0;
		border-radius: 200rpx  0rpx  0rpx  200rpx  ;
		background: #080808;
		height: 60rpx;
		
		font-size: 28rpx;
		color: #D8B255;
		display: flex;
		justify-content: center;
		align-items:center;
		padding: 0 20rpx;
	}
	.menu_box{
		display: flex;
		flex-direction: row;
		justify-content: center;
		background-color: #fff;
		margin: 0 20rpx;
		border-radius: 8rpx;
		height: 80rpx;
		line-height: 80rpx;
	}
	.icon{
		display: flex;
		justify-content: center;
		align-items: center;
		margin-right: 10rpx;
	}
	.bsn{
		display: flex;
		justify-content: center;
		// margin-top: 10rpx;
		.img_bsn{
			width: 50%;
		}
	}
</style>
